package com.chenglai.goods.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

/**
 * @author Jiang
 * @create 2023-11-16 09:58:18 
 */
@ApiModel( value ="t_cl_productAnswer" )
@Table( name ="t_cl_productAnswer" )
public class ProductAnswer implements Serializable {

    @Id
   	@Column(name = "answer_id" ,updatable = false)
	@ApiModelProperty( value="null")
	private Integer answerId;

	/**
	 * 用户ID
	 */
   	@Column(name = "user_id" )
	@ApiModelProperty( value="用户ID")
	private Integer userId;

	/**
	 * 商品Id
	 */
   	@Column(name = "product_id" )
	@ApiModelProperty( value="商品Id")
	private Integer productId;

	/**
	 * 问题或回答
	 */
   	@Column(name = "answer_content" )
	@ApiModelProperty( value="问题或回答")
	private String answerContent;

	/**
	 * 0为问题其他为问题的ID为回答
	 */
   	@Column(name = "parent_id" )
	@ApiModelProperty( value="0为问题其他为问题的ID为回答")
	private Integer parentId;

	/**
	 * 问题回答的数量
	 */
   	@Column(name = "answer_num" )
	@ApiModelProperty( value="问题回答的数量")
	private Integer answerNum;

	/**
	 * 评论时间
	 */
   	@Column(name = "answer_time" )
	@ApiModelProperty( value="评论时间")
	private String answerTime;

	/**
	 * 审核状态 0未审核 1已通过
	 */
   	@Column(name = "answer_status" )
	@ApiModelProperty( value="审核状态 0未审核 1已通过")
	private Integer answerStatus;

	/**
	 * 门店ID
	 */
   	@Column(name = "shop_id" )
	@ApiModelProperty( value="门店ID")
	private Integer shopId;

    /**
     * 用户名称
     */
    @Transient
    private String userName;

    /**
     * 问题回答列表
     */
    @Transient
    private List<ProductAnswer> productAnswerList;

  public Integer getAnswerId() {
    return answerId;
  }

  public void setAnswerId(Integer answerId) {
    this.answerId = answerId;
  }


  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }


  public Integer getProductId() {
    return productId;
  }

  public void setProductId(Integer productId) {
    this.productId = productId;
  }


  public String getAnswerContent() {
    return answerContent;
  }

  public void setAnswerContent(String answerContent) {
    this.answerContent = answerContent;
  }


  public Integer getParentId() {
    return parentId;
  }

  public void setParentId(Integer parentId) {
    this.parentId = parentId;
  }


  public Integer getAnswerNum() {
    return answerNum;
  }

  public void setAnswerNum(Integer answerNum) {
    this.answerNum = answerNum;
  }


  public String getAnswerTime() {
    return answerTime;
  }

  public void setAnswerTime(String answerTime) {
    this.answerTime = answerTime;
  }


  public Integer getAnswerStatus() {
    return answerStatus;
  }

  public void setAnswerStatus(Integer answerStatus) {
    this.answerStatus = answerStatus;
  }


  public Integer getShopId() {
    return shopId;
  }

  public void setShopId(Integer shopId) {
    this.shopId = shopId;
  }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public List<ProductAnswer> getProductAnswerList() {
        return productAnswerList;
    }

    public void setProductAnswerList(List<ProductAnswer> productAnswerList) {
        this.productAnswerList = productAnswerList;
    }
}
